<?php //echo '<pre>'; print_r($projects) ?>
<link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>/public/style.css"> 
<div class="header-title">Controllers</div>
<table class="list">
    <tr>
        <th>No</th>
        <th>Controller Name</th>
        <th>Controller Description</th>
        <th>Controller URI</th>
        <th>Controller Extends</th>
        <th>Action</th>  
    </tr>
    <?php foreach($controllers as $key => $controller): ?>
    <tr>
        <td><?php echo $key+1 ?></td>
        <td><?php echo $controller->controller_name ?></td>
        <td><?php echo $controller->controller_description ?></td>
        <td><?php echo $controller->controller_uri ?></td>
        <td><?php echo $controller->controller_extends ?></td>
        <td>
            <a href="<?php echo base_url() ?>index.php/controller/edit/controller-id/<?php echo $controller->controller_id ?>">Edit</a>
            <a href="<?php echo base_url() ?>index.php/controller/delete/controller-id/<?php echo $controller->controller_id ?>">Delete</a>
        </td>
    </tr>
    <?php endforeach; ?>
</table>